cpufreq: error path fixes
authorJan Beulich <jbeulich@suse.com>
Fri, 14 Oct 2011 08:15:54 +0000 (10:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 14 Oct 2011 08:15:54 +0000 (10:15 +0200)
commit52776ac43ce4ad58ce104ca8426b1ee03622d61b
tree327eb87b3bfc241e2acb79172a802ebb1086ffe6
parent96ecd1276c0d89ffd33ecb77ccd804a5ae2f799c
cpufreq: error path fixes

This fixes an actual bug (failure to exit from a function after an
allocation failure), an inconsistency (not removing the cpufreq_dom
list member upon failure), and a latent bug (not clearing the current
governor upon governor initialization failure when there was no old
one; latent because the only current code path leading to this
situation frees the policy upon failure and hence the governor not
getting cleared is benign).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/drivers/cpufreq/cpufreq.c
xen/drivers/cpufreq/utility.c